var language = navigator.language ? navigator.language : navigator.userLanguage;
var url = url.replace(/{searchTerms}/g, encodeURIComponent(terms));
url = url.replace(/{language}/g, language);
return url;
};
var searchAmazonURL = "http://www.amazon.com/s?ie=UTF8&index=blended&field-keywords={searchTerms}&tag=smtfx1-20";
var searchOneRiotURL = "http://www.oneriot.com/search?p=smarterfox&ssrc=smarterfox_popup_bubble&spid=8493c8f1-0b5b-4116-99fd-f0bcb0a3b602&q={searchTerms}";
var add_oneriot_results_to_google = function(queryTerms)